#pragma once
#include<qopenglwidget>
#include<iostream>
#include<opencv2/imgcodecs.hpp>
#include<opencv2/highgui.hpp>
#include<opencv2/imgproc.hpp>
#include<opencv2/imgproc.hpp>
using namespace cv;
class XVideoWidget :public QOpenGLWidget
{
	Q_OBJECT

public:
	XVideoWidget(QWidget *p);
	virtual void paintEvent(QPaintEvent *e);
	virtual ~XVideoWidget();
	//接受槽函数，接收xVideoThread void ViewImage1(Mat mat); 发送来的数据
	//需要实现
public slots:
	void setImage(Mat mat);
protected:
	QImage img;

};

